/*
 * 创建日期 2004-5-14
 *
 * 更改所生成文件模板为
 * 窗口 > 首选项 > Java > 代码生成 > 代码和注释
 */
package net.comm.common;


/**
 * @author 
 * 
 
 */
public class GlbFinal {

	// returnmsg errorcode
	public static final int ERRCODE_SUCCESS = 0; //成功

	public static final int ERRCODE_FAIL = -1; //失败

	public static final int ERRCODE_EXCEPTION = -2; //系统异常

	public static final int ERRCODE_CONFIRM = 1; //需要进一步人工确认

	public static final int ERRCODE_ROLL = 4; 	//需要回滚

	public static final String YES = "1"; 		//是
	public static final String NO = "2"; 		//否
	
	public static final String ADMIN = "admin"; // 系统管理员，不允许删除该用户

	//EMAIL参数
	public static final String EMAIL_SMTP = "smtp.163.com"; //SMTP
	public static final String EMAIL_ADDR = "billazw@163.com"; //SMTP
	public static final String EMAIL_FRNAME = "i友邻社区"; //SMTP
	public static final String EMAIL_FRUSER = "billazw"; //SMTP
	public static final String EMAIL_FRUSERPSD = "iyoulin"; //SMTP
	
	// 网站域名
	public static final String WEB_HTTP = "http://www.iyoulin.com";  // "网站域名";	// 	
	
	//session中会员信息字段名
    public static final String SESSION_USERID = "userID";
    public static final String SESSION_NAME = "username";
    public static final String SESSION_USERTYPE = "usertype";
    public static final String SESSION_INVITEID = "inviteID";
	
	//短信最低余额
	public static final double MIXBAL = 1.00; 		//最低余额

	//防注入正则表达式
	public static final String SQLINjection =".*([';]+|(--)+).*";

	
	//防垃圾邮件
	public static final String LAJIMSG ="lajimsg";
	
	//下一个跳转连接
	public static final String NEXTURL ="nexturl";
	
	//防垃圾灌水
	public static final String LAJIREPLY ="lajireply";

	//非部落相册 部落ID号 |非社区部落 社区ID号 
	public static final int PUBLICID = 99999999; //

 	//业委会员类型
	public static final String YWPOST_FUZEREN = "1";  		// "负责人";	// 
	public static final String YWPOST_COMMON = "2";  		// "成员";	// 
	public static final String YWPOST_LIANXIREN = "3";  	// "日常联系人";	// 
	
	//物业会员类型
	public static final String WYPOST_FUZEREN = "1";  	// "负责人";	// 
	public static final String WYPOST_DUIZHANG = "2";  	// "保安队长";		// 	
	public static final String WYPOST_COMMON = "3";  	// "成员";	// 
	
	//会员/帖子/交友活动  状态
	public static final String STS_NORMAL = "1"; 		//正常
	public static final String STS_CLOSE = "2"; 		//关闭
	public static final String STS_CHECKING = "3";  	//审核中
		
	//家庭状况
	public static final String FAMLIY_FUQI = "1"; 		// 夫妻
	public static final String FAMLIY_XIEZI = "2"; 		// 携子女同住
	public static final String FAMLIY_XIELAO = "3"; 	// 携老人同住
	public static final String FAMLIY_SANDAI = "4"; 	// 三代同堂
	public static final String FAMLIY_DUJU = "5"; 		// 独居
	public static final String FAMLIY_DANQIN = "6"; 		// 单亲
	public static final String FAMLIY_QITA = "7"; 		// 其他

	
    //居住状况
    public static final String LIVE_ZIYOU = "1";		//自有住房
    public static final String LIVE_ZUFANG = "2";		//租房
    public static final String LIVE_DANWEIFANG = "3";	//单位住房
    public static final String LIVE_JIEZHU = "4";		//借住
    public static final String LIVE_QITA = "5";			//其他
    

	//投诉来源
	public static final String TS_FRLIUYAN = "1"; 		//留言投诉
	public static final String TS_FRMSG = "2"; 			//站内信投诉
    
    
    //爬虫IP
    public static final String SPYIP = "2";
    
    //邻居分组ID
    public static final int LINJUTEAM = 1;
    
    //图片压缩长宽
    public static final int 	ZIPPIC_WIDTH = 70;    
    public static final int 	ZIPPIC_HEIGHT = 90;       
    

	//页面状态
	public static final String PAGEDISN = "1"; // 页面未显示
	public static final String PAGEDISY = "2"; // 页面已显示

	//发送状态
	public static final String SENDN = "1"; // 未发送
	public static final String SENDY = "2"; // 已发送

	//性别
	public static final String SEX_MAN = "1"; // 男
	public static final String SEX_WOMAN = "2"; // 女
	
	//婚姻状况
	public static final String MARRIED = "1"; 	// 已婚
	public static final String UNMARRIED = "2"; // 未婚
	
    //审核标志
    public static final String CHKFLAG_PASS = "1";
    public static final String CHKFLAG_NO = "2";   	
	
	//有效证件类型
	public static final String CERT_IDCARD = "1";	//身份证"; 	// 
	public static final String CERT_JGZ = "2";		//军官证";  // 
	public static final String CERT_PASSPORT = "3";	//护照";  // 
	
	
	//邀请好友状态
	public static final String INVITE_SEND = "1"; 		// 发出邀请
	public static final String INVITE_REGISTER = "2"; 	// 邀请好友注册成功

	//用户类型
	public static final String USER_TEMP = "1";  	// "临时会员 ";		// 
	public static final String USER_COMMON = "2";  	// "普通会员";	// 
	public static final String USER_HIGH = "3";  	// "高级会员";	// 
	public static final String USER_VIP = "4";  	// "VIP会员";	// 
	public static final String USER_KEFU = "5";  // " 首席客服";	//

	public static final String USER_MANAGER = "8";  // "系统管理员";		// 	
	public static final String USER_ADMIN = "9";  // "系统管理员";		// 	

	//用户状态
	public static final String USER_ONLINE = "1"; 	//在线
	public static final String USER_OFFLINE = "2";  // 离线
	
	//好友/邻居状态
	public static final String FRSTS_COMMON = "1"; 	//正常
	public static final String FRSTS_SHENDU = "2";  //深度交往
	
	//序号类型
    public static final String SEQ_BLOGID = "003";		//博客编号
    
    public static final String SEQ_USERID = "010";		//用户编号

    public static final String SEQ_BLACKID = "044";		//黑名单编号
    public static final String SEQ_INVITEID = "045";	//邀请好友编号
    public static final String SEQ_FRIENDID = "046";	//好友编号
  
    public static final String SEQ_MESSAGE = "047";		//Messages编号
    public static final String SEQ_MSGCONT = "048";		//站内信编号
    public static final String SEQ_ASSORTID = "052";	//属性分类编号
    public static final String SEQ_OPERLOG = "053";		//操作日志编号
   
    public static final String SEQ_VILLAGEID = "054";		//社区编号
    public static final String SEQ_USERHOMEID = "055";		//居住信息编号
    public static final String SEQ_JIFENID = "056";			//积分编号
    public static final String SEQ_NOTADVID = "057";		//公告/通知/投诉/建议/留言编号
    public static final String SEQ_VISTORLOGID = "058";		//个人主页访问编号
    public static final String SEQ_CHECKLOGID = "059";		//互相验证编号
    public static final String SEQ_JGSHENQINGID = "060";	//机构申请编号
    public static final String SEQ_YEZHUID = "061";			//业委编号
    public static final String SEQ_WUYEID = "062";			//物业编号
    public static final String SEQ_WUYEMEMBERID = "063";	//物业成员编号
    public static final String SEQ_WYSERVEID = "064";		//物业服务编号
    public static final String SEQ_JFLOGID = "065";			//积分日志编号
    
    public static final String SEQ_GROUPID = "068";			//群组编号	
    public static final String SEQ_GPICTUREID = "069";		//群图片编号	
    public static final String SEQ_GFORUMID = "070";		//群话题编号	
    public static final String SEQ_GFOLLOWID = "071";		//群话题跟帖编号	
    public static final String SEQ_GALBUMID = "072";		//群相册编号	
    public static final String SEQ_GPARTYID = "073";		//群活动编号	
    public static final String SEQ_FILEID = "076";			//附件文件编号	
    
    public static final String SEQ_QUESTIONID = "077";		//常见问题编号	
    public static final String SEQ_ANSWERID = "078";		//常见问题答案编号
    public static final String SEQ_DIANPINGID = "079";		//点评编号
    
    
	//系统安装文件夹
	public static String FOLDER_INSTALL = ""; // 
 
	public static final String TYPE_SELECT = "1"; 		//优先
	public static final String TYPE_WITHOUT = "2"; 		//备选
	
    //用户fid类型
    public static final String FID_FOLDER = "1";    
    public static final String FID_FILES = "2"; 
    
	//水印字符串
	public static final String WATER_STRING = "iyoulin.com"; 	//    
    
	//上传文件夹名称
	public static final String FOLDER_USERPIC = "userpic\\"; // 用户照片存放路径
	public static final String FOLDER_GROUPPIC = "grouppic\\"; // 群组照片存放路径    
	
	//视频转换程序
	public static final String VIDEOPRG_PATH = "videoprg\\"; // 用户照片存放路径
	
    //序号长度
	public static final int SEQ_LENGTHTEN = 10; // 序号长度
	public static final int SEQ_LENGTH_EIGHT = 8; // 序号长度	
    public static final int SEQ_LENGTHTHI = 3;
    public static final int SEQ_LENGTHFIVE = 5;
    public static final int SEQ_LENGTHSEVEN = 7;
    public static final int SEQ_LENGTH_FIVE = 5;
    
    //图片压缩情况
	public static final int ZIP_600 = 0; 			// 默认压缩到宽度600PX
	public static final int ZIP_135_110 = 1; 		// 增加压缩一个135*110的图片
	public static final int ZIP_135_110_50_50 = 2; 	// 增加压缩一个135*110的图片和50*50图片    
	public static final int ZIP_200_200 = 3; 		// 增加压缩一个200*200的图片   
	public static final int ZIP_200_200_50_50 = 4; 	// 增加压缩一个200*200的图片和50*50图片    
    
    
    //初始化序号
	public static final String SEQ_INITSEQ = "00000000"; // 初始序号
    
	//序号填充字符
	public static final char SEQ_FILL_CHAR ='0';
	
    //群组成员类型
    public static final String GROUPMEMBER_CREATOR = "1";   // "创建者";   
    public static final String GROUPMEMBER_MANAGER = "2";  	// "管理"; 
    public static final String GROUPMEMBER_COMMON = "3";  	// "普通";    
    public static final String GROUPMEMBER_CREATOR_MANAGER = "4";  	// "创建者 或 管理者";    
    
    //群组类型
    public static final String GROUP_PUBLIC = "1";   		// "公开加入";   
    public static final String GROUP_APPROVE = "2";  		// "加入需要批准"; 
    public static final String GROUP_SECRET = "3";  		// "私密";    

    //点评板块
    public static final String DSORT_FORUM = "1";   		// "话题";   
    public static final String DSORT_PIC = "2";   			// "图片";   
    public static final String DSORT_PARTY = "3";   		// "活动";   

    //点评类型
    public static final String DTYPE_UP = "1";   		// "顶";   
    public static final String DTYPE_DOWN = "2";   		// "踩";   

    //群组参数
    public static final int GROUP_NUM = 200;    		//限定人数
    public static final int GROUP_ALBUMSIZE = 20; 		// 相册容量
    
    //群组加入标志
    public static final String GROUP_ADDFLG = "addFlag";  // "群组加入标志";    

	//短信费用总表操作类型
	public static final String FEETOTAL_ADD = "1"; // 增加
	
	public static final String FEETOTAL_DEL = "2"; // 删除
	
	//上传文件存放路径
	public static final String FILEPATH = "UserFiles\\"; // 上传文件存放路径
	public static final String FILEWEBPATH = "/UserFiles/"; // 上传文件存放路径	
	
	public static final String NOPICMAN = "nopic_man.gif"; // 未上传图片
	public static final String NOPICWOMAN = "nopic_woman.jpg"; // 未上传图片
	public static final String NOPIC = "nopic.jpg"; // 未上传图片
	public static final String NOQX = "noqx.gif"; // 没有权限
	public static final String NOZJ = "nozj.jpg"; // 未上传证件
	
	public static final String LOGO = "images\\logo.jpg"; 		// LOGO
	
    //隐私保护
    public static final String USERSET_MEMBER = "1"; 		//"公开";   
    public static final String USERSET_LINJU = "2";  		//"仅对邻居开放"; 
    public static final String USERSET_FRIEND = "3"; 		//"仅对好友开放"; 
    public static final String USERSET_BAOMI = "4"; 		//"不公开";   
    
	
	//用户状态
	public static final String USERSTS_NORMAL = "1"; 	//启用
	public static final String USERSTS_EMAIL = "2";  	// 待EMAIL确认
	public static final String USERSTS_CANCEL = "3";  	// 注销
	public static final String USERSTS_CHECKING = "4"; 	// 审核中
	
	//操作日志类型
	public static final int OPERTYPE_BLOG = 1; 			//日志
	public static final int OPERTYPE_JIAHAOYOU = 2; 	//加好友
	public static final int OPERTYPE_NOTADV = 3; 		//公告/通知/投诉/建议/留言
	public static final int OPERTYPE_UPLOADPIC = 4; 	//上传部落照片
	public static final int OPERTYPE_LINJU = 5; 		//加关注
	public static final int OPERTYPE_HUATI = 6; 		//发布话题
	public static final int OPERTYPE_HUODONG = 7; 		//发布活动
	public static final int OPERTYPE_SQZL = 8; 			//社区资料
	public static final int OPERTYPE_GALBUM = 9; 		//部落相册
	public static final int OPERTYPE_PERSONALBUM = 10; 	//个人相册
	public static final int OPERTYPE_PERSONPIC = 11; 	//个人照片

	
	// 系统配置文件名
	public static String ConfigName = "";
	
	public static String Logger_FilePrefix = "";
	
	// LOG4J配置文件名
	public static String LOG4JConfigName = "\\log4j.properties";
	
	
    //分类顺序号年份
    public static final String SEQ_INITDATE  = "2008";	
	
	// 系统日志处理类配置变量
	public static final String Logger_OutType = "File"; // 标准输出流：Standard，文件：File

	public static final String Logger_DiveFlag = "true";

	public static final int Logger_Level = 1; // Logger.Debug
	
    //是否首页显示
    public static final String HEAD_DISPLAY = "1";    
    public static final String HEAD_NODISPLAY = "2"; 
    
    //帖子检索字段
    public static final String SEARCH_CONT = "3";   
    public static final String SEARCH_TITLE = "4";   
    
    //验证者类型
    public static final String CHECKTYPE_USERS = "1";   
    public static final String CHECKTYPE_YEWEI = "2";   
    public static final String CHECKTYPE_WUYE = "3";   

    
    //机构地址 联系人名字是否公开
    public static final String ORGAN_HIDE = "1";    
    public static final String ORGAN_PUBLIC = "2";   
  
    //消息类型
	public static final String MTYPE_SIXIN = "1"; 			//私信
	public static final String MTYPE_ZHAOHU = "2"; 			//打招呼
	public static final String MTYPE_QINGQIU = "3"; 		//好友请求
	public static final String MTYPE_GUANGZHU = "4"; 		//加关注
	public static final String MTYPE_JIESHOU = "5"; 		//邀请加入
	public static final String MTYPE_LIUYAN = "6"; 			//新留言
	public static final String MTYPE_PINGLUN = "7"; 		//新评论
	public static final String MTYPE_HUIFU = "8"; 			//新回复
	public static final String MTYPE_SHENQING = "9"; 		//成员申请
	public static final String MTYPE_YANZHENG = "A"; 		//申请会员验证
	public static final String MTYPE_YWYANZH = "B"; 		//申请业委验证
	public static final String MTYPE_WYYANZH = "C"; 		//申请物业验证

    //公告/通知/投诉/建议/留言类型
	public static final String NTYPE_GONGGAO = "1"; 	//公告
	public static final String NTYPE_TONGZHI = "2"; 	//通知
	public static final String NTYPE_TOUSU = "3"; 		//投诉
	public static final String NTYPE_JIANYI = "4"; 		//建议
	public static final String NTYPE_LIUYAN = "5"; 		//留言
	public static final String NTYPE_WENTI = "6"; 		//常见问题
	public static final String NTYPE_SHENSU = "7"; 		//申诉
	
    //公告/通知/投诉/建议/留言 所属板块
	public static final String NSORT_YEWEI = "1"; 	//业委会
	public static final String NSORT_WUYE = "2"; 	//物业
	public static final String NSORT_BULUO = "3"; 	//部落
	public static final String NSORT_KEFU = "4"; 	//客服
	public static final String NSORT_GERENZHUYE = "5"; 	//个人主页
	public static final String NSORT_SHEQU = "6"; 	//社区	
	public static final String NSORT_PIC = "7"; 	//图片

    //机构类型
	public static final String JIGOU_YEWEI = "1"; 	//业委会
	public static final String JIGOU_WUYE = "2"; 	//物业
	public static final String JIGOU_ZIZHU = "3"; 	//自助机构
	
	
	//消息删除标志
	public static final String DELMSG_NO = "1"; 		// 未删除
	public static final String DELMSG_YES = "2"; 		//已删除
	
    //站内消息状态
    public static final String WEBMSG_UNREAD = "1";  	//未读  
    public static final String WEBMSG_READ = "2"; 		//已读
    
    //审核中
    
	//首页显示标志
	public static final String HOMEDIS_YES = "1"; 	// 首页显示
	public static final String HOMEDIS_NO = "2"; 	// 不在首页显示    
	

    //博客访问设置
    public static final String ALLOW_FLG_ANY = "1";   		// "对任何人开放";   
    public static final String ALLOW_FLG_BACKERS = "2";   	// "仅对支持者开放";   

    //生肖
    public static final String SHXIAO_SHU = "1";	//鼠    
    public static final String SHXIAO_NIU = "2";    //牛
    public static final String SHXIAO_HU = "3";    //虎
    public static final String SHXIAO_TU = "4";    //兔
    public static final String SHXIAO_LONG = "5";  //龙  
    public static final String SHXIAO_SHE = "6";   //蛇 
    public static final String SHXIAO_MA = "7";    //马
    public static final String SHXIAO_YANG = "8";  //羊  
    public static final String SHXIAO_HOU = "9";   //猴 
    public static final String SHXIAO_JI = "A";    //鸡
    public static final String SHXIAO_GOU = "B";   //狗 
    public static final String SHXIAO_ZHU = "C";   //猪 

    //星座
    public static final String STAR_SHUIPING = "1";	//水瓶座 
    public static final String STAR_SHUANGYU = "2";	//双鱼座   
    public static final String STAR_BAIYANG = "3";	//白羊座  
    public static final String STAR_JINNIU = "4";	//金牛座   
    public static final String STAR_SHUANGZI = "5";	//双子座  
    public static final String STAR_JUXIE = "6";	//巨蟹座
    public static final String STAR_SHIZI = "7";	//狮子座
    public static final String STAR_CHUNV = "8";	//处女座
    public static final String STAR_TIANCHENG = "9";	//天秤座    
    public static final String STAR_TIANXIE = "A";	//天蝎座
    public static final String STAR_SHESHOU = "B";	//射手座
    public static final String STAR_MOJIE = "C";	//摩羯座    
}


